{extend name="base" /}

{block name="content"}
<div style="padding: 0 10px;">
    <ul style="overflow: hidden; padding-top:10px; padding-left:10px;">
        <li style="float: left; margin-right: 15px;">充值金额：<b>{$Think.get.fact_money}</b></li>
        <li style="float: left; margin-right: 15px;">分成金额：<b>{$Think.get.end_money}</b></li>
    </ul>
    <table style="margin-top:0px;" id="tableBox" lay-filter="tableBox"></table>
</div>
{/block}

{block name="css"}{/block}

{block name="js"}
<script>
    layui.use(['form', 'table'], function(){
        var $ = layui.$
            ,table = layui.table
            ,load = layer.load();

        //表格初始化
        table.render({
            elem: '#tableBox'
            ,height: '580'
            ,url: '{:url("AuditList/view")}'
            ,page: true
            ,where: {id: {$Think.get.id}}
            ,limit: 200
            ,limits: [200,400,800]
            ,loading: true
            ,id: 'tableId'
            ,done: function (res, curr, count) {
            layer.close(load);
        }
        ,cols: [[
            {field:'cps_id', title:'渠道ID'}
            ,{field:'cps_name', title:'渠道名称'}
            ,{field:'game_id', title:'游戏ID'}
            ,{field:'game_name', title:'游戏名称'}
            ,{field:'money', title:'充值金额'}
            ,{field:'pay_rate', title:'分成比例'}
            ,{field:'channel_rate', title:'通道费率'}
            ,{field:'tax_rate', title:'税率'}
            ,{field:'end_money', title:'分成金额'}
        ]]
    });

    });
</script>
{/block}